﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Assessment.Management.SharedComponent.Params.ManagerParam;
using Assessment.Management.DAO.CommonManagers;

namespace Assessment.Management.BIZ.CommonBIZ
{
    public class PollBIZ
    {
        public void CheckExitsDataConfig(PollParam param)
        {
            var dao = new PollDAO();
            dao.CheckExitsDataConfig(param);
        }
        public void CheckConfig(PollParam param)
        {
            var dao = new PollDAO();
            dao.CheckConfig(param);
        }

        public void GetListPoll(PollParam param)
        {
            var dao = new PollDAO();
            dao.GetListPoll(param);
        }

        public void GetPollInput(PollParam param)
        {
            var dao = new PollDAO();
            dao.GetPollInput(param);
        }

        public void GetPollByID(PollParam param)
        {
            var dao = new PollDAO();
            dao.GetPollByID(param);
        }

        public void GetListPollByDepartment(PollParam param)
        {
            var dao = new PollDAO();
            dao.GetListPollByDepartment(param);
        }

        public void GetLastPollCode(PollParam param)
        {
            var dao = new PollDAO();
            dao.GetLastPollCode(param);
        }

        public void CreatePoll(PollParam param)
        {
            var dao = new PollDAO();
            dao.CreatePoll(param);
        }

        public void UpdatePoll(PollParam param)
        {
            var dao = new PollDAO();
            dao.UpdatePoll(param);
        }

        public void DeletePoll(PollParam param)
        {
            var dao = new PollDAO();
            dao.DeletePoll(param);
        }

        public void SearchPollSetting(PollParam param)
        {
            var dao = new PollDAO();
            dao.SearchPollSetting(param);
        }
    }
}
